Skip to content

Add support for Google Gemini#62

Closed
zhangzhenxiang666 wants to merge 4 commits intorellfy:masterfrom
zhangzhenxiang666:master
Closed

Add support for Google Gemini#62
zhangzhenxiang666 wants to merge 4 commits intorellfy:masterfrom
zhangzhenxiang666:master

Conversation

@zhangzhenxiang666
Copy link
Copy Markdown

Adapt Gemini using serde attribute macros

张贞翔 added 4 commits April 29, 2025 23:23
- 重构了聊天模块的代码结构,使其更加清晰和模块化
- 添加了对工具调用的支持,使AI可以调用外部工具来完成任务
- 更新了示例代码,展示了如何使用新的工具调用功能
- 引入了新的Content类型来处理消息内容,提高了代码的灵活性
- 移除 .editorconfig 文件中对 YAML 文件的缩进设置
- 删除 examples/chat_tools.rs 文件
- 在 src/chat/modules.rs 中为 ChatCompletionMessage 的 content 字段添加 serde 注解
- 删除 test_data/file_upload_test1.jsonl 文件
- 在 utils.rs 文件的 forward_deserialized_chat_response_stream 函数中,
  优化了反序列化失败时的日志输出。
- 新增了 JSON 数据内容和错误信息的详细日志,便于排查问题。
@zhangzhenxiang666 zhangzhenxiang666 closed this by deleting the head repository Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant